package com.intellij.licensecommon.message.impl;

import com.intellij.licensecommon.logging.Logger;
import com.intellij.licensecommon.logging.LoggerFactoryHolder;
import com.intellij.licensecommon.message.Message;
import com.intellij.licensecommon.message.MessageReceiver;
import com.intellij.licensecommon.message.a.MessageFactoryImpl;

public abstract class TaggedMessage implements Message {
    private static final Logger a = LoggerFactoryHolder.LOGGER_FACTORY.getLogger("#com.intellij.licensecommon.message.impl.TaggedMessage");
    private static final int b = 3;
    private String c;
    private int d = 3;

    protected TaggedMessage() {
    }

    protected TaggedMessage(String paramString) {
        this.c = paramString;
    }

    protected TaggedMessage(TaggedMessageData paramTaggedMessageData) {
        this.c = paramTaggedMessageData.b();
        this.d = paramTaggedMessageData.c();
    }

    public String a() {
        return this.c;
    }

    public boolean a(MessageReceiver paramMessageReceiver) {
        if (this.c == null) {
            return true;
        }
        MessageFactoryImpl locala = (MessageFactoryImpl) paramMessageReceiver.getMessageFactory();
        if (this.c.equals(locala.a())) {
            a.info("Tagged message cancelled.");
            return false;
        }
        return true;
    }

    public String toString() {
        return getClass().getName() + "{" + TaggedMessage() + "}";
    }

    public int b() {
        return this.d;
    }
}



/* Location:           E:\idea\

 * Qualified Name:     com.intellij.a.d.b.a

 * JD-Core Version:    0.7.0.1

 */